package com.wang.reponse;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 评价VO
 */
@Data
@Api(tags = "评价VO")
public class EvaluationVo {
    /**
     *id
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 评价的用户信息
     */
    @ApiModelProperty(value = "评价的用户信息")
    private UserVo user;

    /**
     * 关联的商铺id
     */
    @ApiModelProperty(value = "关联的商铺id")
    private Long shopId;

    /**
     * 评价用户id
     */
    @ApiModelProperty(value = "评价用户id")
    private Integer userId;

    /**
     * 评价内容
     */
    @ApiModelProperty(value = "评价内容")
    private String content;

    /**
     * 评价图片
     */
    @ApiModelProperty(value = "评价图片")
    private String imageUrl;

    /**
     * 评价星级
     */
    @ApiModelProperty(value = "评价星级")
    private Integer level;

    /**
     * 创建时间[也是评价时间]
     */
    @ApiModelProperty(value = "创建时间[也是评价时间]")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 回复列表
     */
    @ApiModelProperty(value = "回复列表")
    private List<EvaluationReplyVo> replies;
} 